package com.daxia.ogmall.common;
/**
 * 
 * @author elvis
 *
 */
public enum DesignOrderType {
	Default(0, "默认排序"),
	Price(1, "价格排序"),
	Hot(2, "热度排序");

	private int value;
	private String remark;

	private DesignOrderType(int value, String remark) {
		this.value = value;
		this.remark = remark;
	}

	public int getValue() {
		return value;
	}

	public String getRemark() {
		return remark;
	}

	public static DesignOrderType getByValue(int value) {
		for (DesignOrderType o : DesignOrderType.values()) {
			if (o.getValue() == value) {
				return o;
			}
		}
		return null;
	}

}
